home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _3EFF27D8D89B46CDAC058A1AEEEB6A99 < prev    next >
Encoding:
Text File  |  2006-08-04  |  1.9 KB  |  63 lines

  1. from PSPApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': u'Erich Tran',
  6.         'Copyright': u'',
  7.         'Description': u'',
  8.         'Host': u'Paint Shop Pro',
  9.         'Host Version': u'8.10'
  10.         }
  11.  
  12. def Preset_HistogramAdjustment():
  13.     return {
  14.         'LuminanceChannel': {
  15.             'Appearance': 0, 
  16.             'Gamma': 0.91, 
  17.             'HighClipLimit': 198, 
  18.             'HighClipLimitPercentage': None, 
  19.             'LowClipLimit': 0, 
  20.             'LowClipLimitPercentage': None, 
  21.             'MaxOutput': 255, 
  22.             'MinOutput': 0
  23.             }, 
  24.         'RedChannel': {
  25.             'Appearance': 0, 
  26.             'Gamma': 1, 
  27.             'HighClipLimit': 225, 
  28.             'HighClipLimitPercentage': None, 
  29.             'LowClipLimit': 0, 
  30.             'LowClipLimitPercentage': None, 
  31.             'MaxOutput': 255, 
  32.             'MinOutput': 0
  33.             }, 
  34.         'GreenChannel': {
  35.             'Appearance': 0, 
  36.             'Gamma': 1.03, 
  37.             'HighClipLimit': 240, 
  38.             'HighClipLimitPercentage': None, 
  39.             'LowClipLimit': 0, 
  40.             'LowClipLimitPercentage': None, 
  41.             'MaxOutput': 255, 
  42.             'MinOutput': 0
  43.             }, 
  44.         'BlueChannel': {
  45.             'Appearance': 0, 
  46.             'Gamma': 0.92, 
  47.             'HighClipLimit': 255, 
  48.             'HighClipLimitPercentage': None, 
  49.             'LowClipLimit': 0, 
  50.             'LowClipLimitPercentage': None, 
  51.             'MaxOutput': 255, 
  52.             'MinOutput': 0
  53.             }, 
  54.         'TargetChannel': 0, 
  55.         'OverlayResultHistogram': App.Constants.Boolean.true, 
  56.         'HistogramEditMode': App.Constants.HistogramEditMode.Color
  57.         }
  58.  
  59. def Do(Environment):
  60.     # Histogram Adjustment
  61.     App.Do( Environment, 'HistogramAdjustment',         Preset_HistogramAdjustment())
  62.  
  63.